<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>66小区</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="format-detection" content="telephone=no"/>
    <link href="http://66xiaoqu.babytreeimg.com/app/css/video/66video_t.css?v=1.3" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="wrapper">
    <span class="top-w"><img src="http://66xiaoqu.babytreeimg.com/app/images/video/logo.png" class="logo"><img
            src="http://66xiaoqu.babytreeimg.com/app/images/video/top.png" class="top-pic"><img
            src="http://66xiaoqu.babytreeimg.com/app/images/video/guang.png" id="guang-pic"></span>
    <span class="bg-l-w"><img src="http://66xiaoqu.babytreeimg.com/app/images/video/bg_l.png" class="bg-l"></span>
    <span class="bg-r-w"><img src="http://66xiaoqu.babytreeimg.com/app/images/video/bg_r.png" class="bg-r"></span>
    <img src="http://66xiaoqu.babytreeimg.com/app/images/video/xing.png" class="xing-top">

    <div class="layout">
        <div class="con">
            <div id="youkuplayer"></div>
            <img src="http://66xiaoqu.babytreeimg.com/app/images/video/tips.png" class="tips-p">
            <a id="share_bt" href="javascript:;" onclick="share()" class="btn"><img id="bt_img"
                                                                                    src="http://66xiaoqu.babytreeimg.com/app/images/video/btn2.png"></a>
            <dl class="rule">
                <dt><span>活动详情</span></dt>
                <dd class="clearfix"><em>1.&nbsp;</em>

                    <p>将大片分享至您的朋友圈或QQ，每次分享都将获得60积分（仅限新用户）</p></dd>
                <dd class="clearfix"><em>2.&nbsp;</em>

                    <p>每位新用户分享最高可获得300积分</p></dd>
                <dd class="clearfix"><em>3.&nbsp;</em>

                    <p>为确保系统记录的准确性，请您在分享后返回66App</p></dd>
                <dd class="clearfix"><em>5.&nbsp;</em>
                    <p id="note">活动的最终解释权归66小区所有</p></dd>
            </dl>
        </div>
    </div>
</div>
</body>
</html>


<script>

    var params = {};
    var tempArray = window.location.search.split('?');
    if (tempArray.length == 2) {
        var parts = tempArray[1].split('&');
        for (var i = 0; i < parts.length; i++) {
            var nv = parts[i].split('=');
            if (!nv[0]) continue;
            params[nv[0]] = nv[1] || true;
        }
    }

    if (Number(params.vcode) >= 200000) {
        var shareBt = document.getElementById("bt_img");
        bt_img.src = 'http://66xiaoqu.babytreeimg.com/app/images/video/btn1.png'
    }

    if (params.type == 'ios') {
        document.getElementById('note').innerHTML = '活动和设备生产商Apple Inc.公司无关，活动的最终解释权归66小区所有，我们将公正公平对待所有用户。'
    } 

    function share() {

        if (Number(params.vcode) >= 200000) {
            var title = '终于等到你，记录我们相爱一周年的微电影';
            var desc = '66爱好邻居，我们的一周年大片';
            var imageURL = 'http://66xiaoqu.babytreeimg.com/app/images/video/share_icon.jpg';
            var url = 'http://' + window.location.host + '/app/video/outsite.html' + window.location.search;

            if (params.type == 'ios') {
                document.location.href = "66xiaoqu:market:share##title=" + title + "&nbsp;desc=" + desc + "&nbsp;image=" + imageURL + "&nbsp;url=" + url;
            } else {
                webviewhandle.shareGoodsDetail(title, desc, imageURL, url);//webviewhandle为webview注册对象
            }
        }
    }
</script>

<script type="text/javascript" src="http://player.youku.com/jsapi">
    player = new YKU.Player('youkuplayer', {
        styleid: '0',
        client_id: '673d3bd930c09020',
        vid: 'XMTM3MjgyODA4NA'
    });
    var videoHeight = document.documentElement.clientWidth * 360 / 650;
    if (document.getElementById('wrapper').clientWidth < 640) {
        document.getElementById('youkuplayer').style.height = videoHeight + 'px';
    } else {
        document.getElementById('youkuplayer').style.height = '340px';
    }
    document.getElementById('wrapper').className = 'loaded';
</script>
